/**
 * 
 */
package cn.edu.bjtu.entity.impl;

import cn.edu.bjtu.entity.ExecuteResult;
/**
 * @author alex
 *
 */
public final class FailedExecuteResult implements ExecuteResult<String> {
	final private String reason;
	public FailedExecuteResult(String failedReasong) {
		this.reason = failedReasong;
	}
	@Override
	public boolean isAsync() {
		return false;
	}

	@Override
	public boolean isSuccess() {
		return false;
	}
	@Override
	public boolean isFailed() {
		return true;
	}

	@Override
	public String getTipMessage() {
		return reason;
	}

	@Override
	public boolean isExecuting() {
		return false;
	}
	@Override
	public String javaClassResult() {
		return this.reason;
	}

}
